﻿Public Class VersionModel
  Inherits BaseModel

  Public Shared ReadOnly Property AssemblyVersion() As String
    Get
      'Me.Text = Application.ProductName & " (" & Application.ProductVersion & " - " & IO.File.GetLastWriteTime(Application.ExecutablePath).ToString("MM/dd/yyyy") & ")"
      Dim assembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
      Return assembly.GetName().Version.ToString

    End Get
  End Property

  Public Shared ReadOnly Property AssemblyLastWriteDate() As Date
    Get
      Dim assembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
      Return IO.File.GetLastWriteTime(assembly.Location)
    End Get
  End Property

End Class
